package cn.edu.qzit.linpq.entity;

import cn.edu.qzit.linpq.anno.Colum;
import cn.edu.qzit.linpq.anno.Entity;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * ClassName : cn.edu.qzit.linpq.entity.Student
 * Desc : 用户实体类
 *
 * @author : LINPQ
 * @date : 2022/6/16 11:09
 */
@Entity(tableName = "t_student")
@javax.persistence.Entity
public class Student implements Serializable {

    @Id
    public Integer id;

    @Colum(cname = "s_name",nonable = false)
    public String name;
    @Colum(cname = "s_age" )
    public Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
